import upload from '@/utils/upload'
import request from '@/utils/request'





// 获取每日科普
export function getFoodById(id) {
	const routeUrl = '/system/food/' + id
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 获取最新每日科普
export function getFoodNew() {
	const routeUrl = '/system/food/new' 
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 获取每日科普的上条信息
export function getFoodPreById(id) {
	const routeUrl = '/system/food/prev/' + id
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 获取每日科普的下条信息
export function getFoodNextById(id) {
	const routeUrl = '/system/food/next/' + id
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 查询科普列表
export function listFood(query) {
	return request({
		url: '/system/food/list',
		method: 'get',
		params: query
	})
}




